﻿using System;
using System.Collections.Generic;

namespace DTcms.Model
{
    /// <summary>
    /// 文章主实体类
    /// </summary>
    [Serializable]
    public partial class ad
    {
        public ad()
        { }
        #region Model
        private int _id;
        private int _site_id = 0;
        private string _title;
        private int _sort_id = 99;
        private DateTime _add_time = DateTime.Now;
        private DateTime? _update_time;
        private string _linkurl;
        private string _imgurl;
        private string _remark;
        private int _parent_id;
        private int _is_show = 0;
        /// <summary>
        /// 自增ID
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 站点ID
        /// </summary>
        public int site_id
        {
            set { _site_id = value; }
            get { return _site_id; }
        }

        /// <summary>
        /// 标题
        /// </summary>
        public string title
        {
            set { _title = value; }
            get { return _title; }
        }


        /// <summary>
        /// 排序
        /// </summary>
        public int sort_id
        {
            set { _sort_id = value; }
            get { return _sort_id; }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime add_time
        {
            set { _add_time = value; }
            get { return _add_time; }
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? update_time
        {
            set { _update_time = value; }
            get { return _update_time; }
        }

        /// <summary>
        /// 链接地址
        /// </summary>
        public string linkurl
        {
            set { _linkurl = value; }
            get { return _linkurl; }
        }

        /// <summary>
        /// 图片
        /// </summary>
        public string imgurl
        {
            set { _imgurl = value; }
            get { return _imgurl; }
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark
        {
            set { _remark = value; }
            get { return _remark; }
        }

        /// <summary>
        /// 分类id
        /// </summary>
        public int parent_id
        {
            set { _parent_id = value; }
            get { return _parent_id; }
        }

        /// <summary>
        /// 是否显示1显示0不显示
        /// </summary>
        public int is_show
        {
            set { _is_show = value; }
            get { return _is_show; }
        }

        #endregion
    }
}